import 'package:common_utils/common_utils.dart';

class DateTimeUtil {
  static getNowDateStr() {
    return DateUtil.formatDate(DateTime.now(), format: 'yyyy-MM-dd');
  }

  static format(DateTime time) {
    return DateUtil.formatDate(time, format: 'yyyy-MM-dd');
  }

  static parse(String time) {
    return DateUtil.getDateTime(time);
  }
}
